<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

use think\Route;

//前端页面
Route::rule ('/', 'index/Index/index');
Route::get ('Sidebar/', 'index/Index/sidebar');
Route::get ('getUserInfo/', 'index/Index/getUserInfo');
Route::get ('News/', 'index/News/lists');
Route::get ('Scenery/', 'index/Scenery/lists');
Route::get ('Strategy/', 'index/Strategy/lists');
Route::get ('News/:id', 'index/News/detail');
Route::get ('Scenery/:id', 'index/Scenery/detail');
Route::get ('Strategy/:id', 'index/Strategy/detail');
Route::get ('Search', 'index/Index/search');

//登录页面
Route::rule ('Login/', 'login/Index/index');

//后台页面s
Route::rule ('Admin/', 'admin/Index/index');

//api接口
Route::rule ('/api/oauth/qqcallback/', 'api/qqcallback/index');

//默认页面 404 首页用着先
Route::rule ('/:id', 'index/Index/index');
return [
];